Solution to PE1