Working through Write Yourself a Scheme in 48 Hours using scala