FifoScheduler changes to PriorityScheduler

add priority to the resource request
Please don't embed a class inside class.

Use embed it in Object instead.