Added hw3a part4 solution as skeleton