Added constructor for inheritance