added sample file and removed unused code