Remove train Method, implement computeSalary