Added more operators and completed the required function