Using elements of gamification for teaching programming