code cleaned
adding Main class