worked on the trick class.