Convert robocaller function to RoboCaller class