initial struct to rectangle exercise