Reading from file and defined shapes