Implementing add pantry functionality