Simplified class constructor
Made class variables protected