simplified class constructor