First two exercises from the first assignment of this class