Using methods in expressions