refactored to whiteboard class