Function with Return Value Commit

Added function with return.