basic code to demostrate mouse interaction