completed assignement 2