Use constructors instead of literals
simplified code
example