playing around curl in object orientated