Replaced curry with a class

Signed-off-by: emanuele <emanuele45@gmail.com>