Solutions to project 1