Added a method that modifies instance type attribute