practice code done in class as assigned by Ms. Gerstein