Implementing the same but with fragments