First attempt at assignment 1.