working void main class