Used an anonymous class