Adding my scala attempts. Needs to clean up still.