more code and a few samples