changed code types to objectives not classes so don't need to instantiate them when used. This is possible as there's no state specific to instances