Attempts at solutions to Assignment 1