solution to project1:CV