Two solutions, with and without tests