Homework Defensive Programming