Wrote Code to pass Tests