Create hw12 problem 4