Made it compilable

- added virtual
- changed indent