fixed small bugs and added implementation for PersistenceFactory and
cartItem classes