changed getvalue(character) class to public static.