Implemented if-elif-else and while statements.