changed program structure, finished Ratio class and added interface