task5 implemented /mostly moved from desktop PC/