rewrite ladder class