Added object constructor and member initialisation.