implementation of the constructor of street.cs