Working on p2_main()