implemented couple methods in sample project