Added tag repository class