solutions to exam tasks