using repository for learning