Added and completed ex20, ex21, ex22, ex23, ex24