Added Link as an abstract class which contains the the code to connect to each page
Made code more readable implementing inheritance