*finished problem 1, need to rename variables to problem speifications