First solution to 1-3