commit with functions and tests added
