New version of Shop application

All arrays of structures had been changed to Lists. Code style is more
beautiful now. Some functions had been changed.