code update - basic functionality update

utilities changed to handle test input and give test output