added solution for AE00 problem