refactoring DataRepository to allow for styles