updated method definition examples