Simple working model
Some ecxeption handling added
Adding size