added partially applied functions in scala