Manager class

the codes in main is being re written here