adding cost curve code for same
more coding..