completed assignment_14, #31