Trying out dependency injection