Code elevator scala