Created service for assignments array