implemented valueat method and corrcted typo in classname