Repository controller

Added method implementations and tests