Functions assignment

Final submission