Solution for PS2 Optional 1