start work on rank calculator