Classifying and resolving ambiguities in sketch-based interaction