initial attempt at assignment 2