curry basic solution