created base class; moved getters and setters