added basic samples for using classes. need to finish/test.