question 4 and 5, decorator pattern to add memory or storage or bigger screen + factory pattern used to make a laptop factory. also included DOM maniputing functions for the index page