solution to PE1