adding code for testing adding items and funcational code