from validation homework assignment