finished basic grocery functionality