Lab 2 rgb. Fixed bugs