Wrote but did not test the onClick method.