Python simple solution without any lib
\tclass Foo:\n\t\tdef init(self):\n\t\t\tself.seq = 0\n\n\t\tdef first(self, printFirst: \'Callable[[], None]\') -> None:\n\t\t\tprintFirst()\n\t\t\tself.seq = 
\tclass Foo:\n\t\tdef __init__(self):\n\t\t\tself.seq = 0\n\n\t\tdef first(self, printFirst: \'Callable[[], None]\') -> None:\n\t\t\tprintFirst()\n\t\t\tself.seq = 1\n\n\t\tdef second(self, printSecond: \'Callable[[], None]\') -> None:\n\t\t\twhile self.seq < 1:\n\t\t\t\tcontinue\n\t\t\tprintSecond()\n\t\t\tself.seq = 2\n\n\t\tdef third(self, printThird: \'Callable[[], None]\') -> None:\n\t\t\twhile self.seq < 2:\n\t\t\t\tcontinue\n\t\t\tprintThird()
['Python', 'Python3']