Project 1 Solution by Martin Kok