Solution to #4-4