refactored
added super class called solid object