blog video 26 and 27

added a constructor