Creates new class with using a new way of getters and setter methods