Implemented inheritance

When creating a new instance of a service, then it should have
getAccessToken method.