Fix compiler error. Cannot run.
Refractor code.