The class works correctly. Need to figure out how to instantiate it on mouse click.