- trying my hand in a priorityqueue, created an interface.