added comments to figure class