finished assigment 2