Use lambdas for properties

We can use lambda expressions to specify the property instead of using
string literals.