Tried to implement main()