All my work in scala