Good point :)! I would reduce the code a bit though to remove the redundancy with A.