added my solution to bottom of file