Can we do this instead of defining a method?