completed first programming problem