Worked on the O function

should be working now.