To handle shapes and location written in Scala Language