Helper class for the adapter