The solution for project 1 in INFO2180