Conditionals

added nested conditional and conditional into the method accessor