Solution code included