Implemented achieving badges in model