Using solution class