solving sample in interactive mode