Solutions for tutorial problems