Completed first two problems