add solution from blake's lecture