added Jurnell's solutions to comments