trash educational scala code.