Implementing your own main class