generating shapes based on the number