Create hw1q4.cpp