Updated class constructors to constexpr