added pricing function