added attributes and increased constructor