made badge algorithm and some badge assignemnts