Contract class for handling basic promise pattern.