First pass at converting the remote project to scala but tests are failing.