First try at assignment 1.