Added API code
removed pry