program works with objects