Adding source code and sample