Refractoring code.Cannot compile.