added .idea
moved main to main()