Assignment 1, attempt 1