Programming assignement 2.