defined attributes and initialized them in contact class