creating new main using application