Creating custom controller classes