SOLVED PROGRAMS ON CONSTRUCTOR