Made the getters and setters for the object Loop