combines code from friday_homework with app