First attempt to make an interface for reference counter