Second commit

Line chart added, code refactor done