Speeding up solutions to 3, 4 & 5