Skeleton code for mouse listener