As has been said you need to program the functions inside the class: isInside and drag()
See The Nature of Code solutions to exercises?