attempt at assignment 3