Making getLength a static member fn