refactor; move standard_code & add Class structure