demo3c

clean up code