completed initial functionality of figure class