Created Compact class