created second class with 2 attributes