Code for If, Map, Inheritence etc