Added comments and entered the if and else statemnt