added sample input and outputs