Second version with Class Object