Recreateing Main class