validated code!

using write code online