attempt at day 4 assignment