Implemented all operations with first and remainder operators