Working code and examples