Minor optimization
Add solutions to the problems 27-28