Assignment - Function

Added a 3 parameter to the personal assignment with comments. Also
added another if and else if statement.