Calculate median and upper quartile for the following data :
22, 27, 15, 25, 30, 18, 27, 20, 21, 35, 23