Added getIcon function

Porject finished